home *** CD-ROM | disk | FTP | other *** search
INI File | 1995-08-13 | 1.0 KB | 49 lines |
- [*About this script*]
- This script captures the current day's stories from Online Today (OLT-90),
- placing each story in a separate message.
-
- [*Script Setup*]
- Title=Get Online Today stories
-
- [Begin]
- Echo "Script to capture Today's Monitor News"
- if ( @capName$ = "" ) Let @capName$ = @pathMsg$ @svcName$ '.MSG'
-
- Let @hdrSec$ = "0 Online Today"
- Let @hdrNum = @On
-
- WaitList
- 1 = "^JMORE !"
- 2 = "^J!"
- EndList
-
- Let command$ = "GO CIS:OLT-90"
- Let lastPage = @False
-
- [GetMenu]
- Send command$
- DoWaitMenu stories[]
- if ( @waitMatch# = 2 ) let lastPage = @True
- ForEach in stories[] gosub "ReadStory"
- Send 'M'
- DoWaitList
- if ( lastPage ) goto "Finished"
- Let command$ = ""
- goto "GetMenu"
-
- [ReadStory]
- ; skip the "montior news" choice, it's a sub-menu and not an article
- if ( @strstr(@arrValue$, "monitor news") ) return
-
- Let @hdrSub$ = @arrValue$
- Send @arrItem$
- Echo "Capturing story " @arritem$ "/" @arrvalue$
- CapHeader
- Wait "^J!"
- CapClose
- Return
-
- [Finished]
- Echo "End of script"
- End
-